package org.dashboard.service;

import com.github.pagehelper.PageInfo;
import org.dashboard.bean.AdDataset;

import java.util.ArrayList;
import java.util.List;

public interface AdDatasetService {

    int deleteByPrimaryKey(Integer datasetId);

    int insert(AdDataset record);

    int insertSelective(AdDataset record);

    AdDataset selectByPrimaryKey(Integer datasetId);

    int updateByPrimaryKeySelective(AdDataset record);

    int updateByPrimaryKeyWithBLOBs(AdDataset record);

    int updateByPrimaryKey(AdDataset record);


    boolean deleteByPrimaryKeys(ArrayList<Integer> datasetIds);

    List<AdDataset> selectAdDatasets();

    int checkDatasetCodeExist(String datasetCode,Integer datasetId);

    AdDataset selectAdDatasetByCode(String datasetCode);

    List<AdDataset> selectAdDatasetsBySchemaId(Integer schemaId);

    PageInfo selectAdDatasetsPaged(String criteria, Integer pageNum, Integer pageSize);
}
